package com.aaa.sbms.util;



import org.apache.shiro.crypto.hash.Sha1Hash;
import org.apache.shiro.crypto.hash.Sha512Hash;

import java.util.UUID;

/**
 * fileName:Sha512Test
 * description:
 * author:zz
 * createTime:2019/11/26 16:58
 * version:1.0.0
 */
public class Sha512Test {
    public static void main(String[] args) {
        String salt  = UUID.randomUUID()+"";
        System.out.println("随机盐："+salt);
        String password ="admin";
        Sha512Hash sha512Hash = new Sha512Hash(password,salt,1024);
        System.out.println("密码："+sha512Hash.toString());

    }
}
